<template>
<div>
    <el-form :inline="true">
      <el-form-item>
        <el-button
          type="primary"
          @click="flush"
          icon="export"
        >重新汇总</el-button>
      </el-form-item>
    </el-form>
    <BrowseDataList
      :cate="cate"
      :cols="cols"
      :name="name"
    />
  </div>

</template>
<script>
import BrowseDataList from "@/components/BrowseDataList";
import { setSaveAfter2019 } from "@/api/案例分析.js";
import { showLoading, hideLoading } from "@/utils/loading"
import { getUser } from "@/utils/auth";
import { getJyl } from "@/api/社会评价.js";
export default {
  components: {
    BrowseDataList
  },
  data() {
    return {
      cate: "就业率",
      name: '9.2 就业率',
      cols: [
        { prop: "应届毕业生", label: "应届毕业生",
          data:[
            { label: "毕业生数(人)", prop: "BYSS" },
            { label: "9月1日就业数(人)", prop: "BYSCCJYS" },
            { label: "9月1日就业率(%)", prop: "BYSCCJYL" }
          ]
        },
        { prop: "上届毕业生", label: "上届毕业生", 
          data:[
            { label: "毕业生数(人)", prop: "SJBYSS" },
            { label: "12月31日就业数(人)", prop: "SJBYSZTJYRS" },
            { label: "12月31日就业率(%)", prop: "SJBYSZTJYL" }
          ]
        }
      ]
    };
  },
  //  async mounted() {
  //   try {
  //     showLoading();
  //     var user = getUser();
  //     await setSaveAfter2019(user.XXID, user.CJPC);
  //     hideLoading();
  //   } catch (e) {
  //     this.$alert(e);
  //   }
  // },
  methods: {
    // async fetchData() {
    //   var user = getUser();
    //   var datas = await getJyl(user.XXID,user.CJPC);
    //   return datas;
    // },
  }
};
</script>
<style>
</style>